<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<p><a href="${pageContext.request.contextPath}/orgnazition/toAdd">添加组织机构</a></p>
<table border="1">
    <thead>
    <tr>
        <td>组织机构名称</td>
        <td>负责人</td>
        <td>业务状态</td>
        <td>创建日期</td>
        <td>操作</td>
    </tr>
    </thead>
    <tbody>
    <c:forEach var="tmp" items="${list}">
        <tr>
            <td>${tmp.name}</td>
            <td>${tmp.principalName}</td>
            <td>
                <c:if test="${tmp.status==0}">
                  开启业务
                </c:if>
                <c:if test="${tmp.status==1}">
                    暂停业务
                </c:if>
            </td>
            <td>${tmp.createDate}</td>
            <td>
                <c:if test="${tmp.status==0}">
                    <a href="#">暂停业务</a>
                </c:if>
                <c:if test="${tmp.status==1}">
                    <a href="#">开启业务</a>
                </c:if>
            </td>
        </tr>
    </c:forEach>
    </tbody>
</table>
</body>
</html>

